package com.android.gtravelling;

import java.util.ArrayList;

import com.android.dto.HotelsDTO;
import com.android.gtravelling.HotelTravel.HotelsDTOArrayAdapter;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

public class Description extends Activity{

	
	private WebserviceCaller WebCaller2;
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.province_info);
		WebCaller2=new WebserviceCaller();
		//take content of intent
		String temp = getIntent().getStringExtra("detail");
		
		int position = Integer.valueOf(temp);
		HotelsDTO hot = WebCaller2.selectOneHotels(position);
		
		TextView describeHotel = (TextView)findViewById(R.id.txtContent);
		ImageView PictureHotel = (ImageView)findViewById(R.id.imgProvince);
		
		describeHotel.setText(hot.getDescription());
		
	}
}
